import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/view/index'
import SearchProduct from '@/view/searchProduct'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: '首页',
      component: SearchProduct
    },
    {
      path: '/search',
      name: '查询药品',
      component: Index
    }
  ]
})
